package com.yeebo.rpc.admin;

import com.github.pagehelper.Page;
import com.yeebo.model.admin.SysRole;

import java.util.List;
import java.util.Map;

/**
 * 系统角色服务接口
 */
public interface SysRoleService {

    Page<SysRole> loadSysRoleManageList(Integer pageNo, Integer pageSize, String filterRoleName);

    void addSysRole(String roleCode, String roleName, String roleDesc);

    void updateSysRole(Long roleId, String roleName, String roleDesc);

    void deleteSysRole(Long roleId);

    SysRole getSysRoleById(Long roleId);

    Map<String, Object> loadSysResourcesVOByRoleId(Long roleId);

    void assignResourcesToRole(Long roleId, List<Long> resourceIdList);

}
